package system.student.funtion.exhibition.teacherfunction;

import system.student.entity.Course;
import system.student.entity.Score;
import system.student.entity.StudentCourseDetail;
import system.student.entity.StudentDetail;
import system.student.entity.user.Student;

import java.util.List;

public interface CourseService {
    /**
     * 获取课程列表
     * @param teacherId
     * @return
     */
    List<Course> findAllCourseByTeacherId(Long teacherId);

    /**
     * 获取课程下的所有学生
     * @param courseId
     * @return
     */
    List<Student> findAllStudentByCourseId(Long courseId);

    /**
     * 添加课程
     * @param course
     */
    void addCourse(Course course);


    /**
     * 添加课程下的学生
     * @param studentScore
     */
    void updateScore(Score studentScore);

    /**
     * 获取课程下的某个学生
     * @param studentScore
     * @return
     */
    List<StudentDetail> findStudentById(Score studentScore);

    /**
     * 获取课程下的所有学生ID
     * @param courseId
     * @return
     */
    List<Student> findAllStudentIDAndNameByCourseId(Long courseId);
}
